package com.isoftstone.disk.obs.repository;

import com.isoftstone.disk.mybatis.entity.PtFileEntity;
import com.isoftstone.disk.mybatis.flexigrid.PagingBean;
import com.isoftstone.disk.mybatis.ztree.ZtreeEntity;
import com.isoftstone.disk.obs.entity.SearchObsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ObsDao {
    void insertFile(@Param("entity") PtFileEntity ptFileEntity);

    void deleteFile();

    List<PtFileEntity> queryFileListByPage(@Param("entity")SearchObsEntity entity, @Param("paging")PagingBean paging);

    Integer queryFileTotal(@Param("entity")SearchObsEntity entity);

    PtFileEntity queryFileInfoById(@Param("fileUUId")String fileUUId);

    PtFileEntity renameFile(String fileUUId);

    int updatefile(@Param("fileUUId")String fileUUId);

    int delFile(@Param("fileUUId")String fileUUId);

    List<PtFileEntity> queryFile(@Param("entity")SearchObsEntity entity, @Param("paging")PagingBean paging);

    void moveFile(@Param("entity")PtFileEntity ptFileEntity);

    List<ZtreeEntity> queryDirZtreeListByFileId();
}
